import React from 'react';

import Constants from '../../common/Constants';
import CommonRequestDataAction from '../common/CommonRequestDataAction';

//请求帖子列表
export default class WH_RequestOfficialAction extends CommonRequestDataAction {
  constructor(props){
    super(props);
    this.moduleType = Constants.MODULE_TYPE.WORK_HARD;
    this.name = "WH_RequestOfficialAction";
  }
  finish(data, isSucceed, response) {
  	if(isSucceed) {
        let dic ={officdata:data}
        this.caller.setState(dic)
      }else{
        let dic ={officdata:{}}
        this.caller.setState(dic)
      }
  }
}